function myPromise(){
    return new Promise((resolve,reject)=>{
        setTimeout(() => {
            console.log('异步任务执行成功');
            resolve('异步任务执行成功lll');
        }, 1000);
    });
}
async function run(){
    console.log('await before')
    let my = await myPromise();
    console.log('await after')
    return my
}
run().then((res)=>{
    console.log(res)
})